package bigk.pluzzdl;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @author bigk
 * @version 0.8.5
 * 
 * 
 * Copyright (C) 2012  bigktheone@gmail.com

 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.

 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 */

public class Video implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7293015932808463974L;
	private String m_link;
	private int m_fragment;
	private boolean m_isDownloaded;
	private Date m_date;
	
	public Video(String link, int fragments, boolean isDownloaded) {
		m_link = link;
		m_fragment = fragments;
		m_isDownloaded = isDownloaded;
		m_date = new Date();
	}
	
	public boolean equals(Object v) {
		if (m_link.equals(((Video)v).getLink())) {
			return true;
		}
			
		return false;
	}

	public String getLink() {
		return m_link;
	}

	public void setLink(String link) {
		m_link = link;
	}

	public int getFragment() {
		return m_fragment;
	}

	public void setFragment(int fragments) {
		m_fragment = fragments;
	}

	public boolean isDownloaded() {
		return m_isDownloaded;
	}

	public void setDownloaded(boolean isDownloaded) {
		m_isDownloaded = isDownloaded;
	}

	public Date getDate() {
		return m_date;
	}

	public void setDate(Date date) {
		m_date = date;
	}
	
	
	
}
